/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package Zoomanagement;

/**
 * Item Class - Represents objects used in logistics operations
 * @author ashongtical
 */
public class Item {
    private String name;
    private String code;
    private double price;

    public Item(String name, String code) {
        this.name = name;
        this.code = code;
    }

    // Accessors and Mutators
    public String getName() { return name; }
    public String getCode() { return code; }
    public double getPrice() { return price; }
    public void setPrice(double price) { this.price = price; }

    // Display item details
    public void display() {
        System.out.printf("Item: %-15s | Code: %-10s | Cost: RMB%.2f\n",
                name, code, price);
    }
}
